<div class="top-nav d-print-none">
	<div class="flex py-2 px-3 [container]">
		<div>
			<div class="flex">
				{eq name=":config('xy_sub_website.status')" value="1"}
				<div class="pr-3">
					<i class="el-icon-location mr-1"></i>{notempty name="sub_title"}{$sub_title}{else/}全国站{/notempty}
					<a href="{xycms:web name='url'}/subsite" class="el-link el-link--info">
						[切换分站]
					</a>
				</div>
				{/eq}
				<div class="pr-3">
					<a href="{xycms:web name='url'}" class="el-link el-link--info">
						<i class="el-icon-s-home mr-1"></i>网站首页
					</a>
				</div>
				{eq name=":config('xy_map.js_status')" value="1"}
				<div class="pr-3">
					<a href="{xycms:web name='url'}/map" class="el-link el-link--info">
						<i class="el-icon-map-location mr-1"></i>地图找工作
					</a>
				</div>
				{/eq}
				<div class="pr-3">
					<a href="/common-problem" class="el-link el-link--info" target="_blank">
						<i class="el-icon-help mr-1"></i>帮助中心
					</a>
				</div>
				<div class="pr-3">
					<el-popover
				    placement="bottom"
				    width="200"
				    trigger="hover">
				    <div class="px-2">
				    	<div class="py-2 text-center">
				    		<img src="/displayQrcode?icon=1&scheme={xycms:web name='h5'/}" alt="{xycms:web name='name'/}H5" width="100">
				    		<div class="text-primary pt-2 small font-weight-bold">{xycms:web name="name"/}H5</div>
				    	</div>
				    	<div class="py-2 text-center">
			    			<img src="/qrcode/appdown" alt="{xycms:web name='name'/}APP" width="100">
				    		<div class="text-primary pt-2 small font-weight-bold">{xycms:web name="name"/}APP</div>
				    	</div>
				    	<div class="py-2 text-center">
				    		<img src="{xycms:web name='wxacode'}" alt="{xycms:web name='name'/}微信小程序" width="100">
					    	<div class="text-primary pt-2 small font-weight-bold">{xycms:web name="name"/}微信小程序</div>
				    	</div>
				    	<div class="py-2 text-center">
				    		<img src="{xycms:web name='wxmpcode'}" alt="{xycms:web name='name'/}微信公众号" width="100">
					    	<div class="text-primary pt-2 small font-weight-bold">关注{xycms:web name="name"/}微信公众号</div>
				    	</div>
				    </div>
					<a href="{xycms:web name='h5'/}" target="_blank" class="el-link el-link--info" slot="reference">
						<i class="el-icon-mobile-phone mr-1"></i>手机访问
					</a>
				  	</el-popover>
				</div>
				<div class="pr-3">
					<a href="/down/InternetShortcut?url={:request()->url()}{notempty name='webtitle'}&title={$webtitle}{/notempty}" class="el-link el-link--info">
						<i class="el-icon-monitor mr-1"></i>保存到桌面
					</a>
				</div>
			</div>
		</div>
		<div class="flex-1"></div>
		<div v-if="!userInfo.id">
			<a href="{xycms:web name='url'}/login" target="_self" class="el-link el-link--primary px-2">用户登录</a>
			或
			<a href="{xycms:web name='url'}/register" target="_self" class="el-link el-link--primary px-2">免费注册</a>
		</div>
		<div v-else-if="userInfo.id  && userInfo.role_type===0">
			欢迎访问{xycms:web name="name"}！
			<el-dropdown trigger="click">
		      <span class="el-dropdown-link mr-2 el-link"
		      v-if="userInfo.resume_name">
		        {{userInfo.resume_name}}<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <span class="el-dropdown-link mr-2 el-link"
		      v-else>
		        {{userInfo.nickname}}<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user/jobs/management');">我的投递</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user/account');">账号设置</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="goToCompany">去企业版</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" @click="outLogin">注销登录</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
			<el-dropdown trigger="click">
		      <span class="el-dropdown-link mr-2 el-link">
		        简历<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user');">我的简历</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open(userInfo.resume_id?'/resume/'+userInfo.resume_id+'.html':'/user');">预览简历</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="refreshResume">刷新简历</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
		    <el-link href="/user/myMessage" :underline="false">消息({{view.message_count}})</el-link>
		</div>
		<div v-else="userInfo.id  && userInfo.role_type===1">
			欢迎访问{xycms:web name="name"}！
			<el-dropdown trigger="click">
		      <span class="el-dropdown-link mr-2 el-link"
		      v-if="userInfo.company_name">
		        {{userInfo.company_name}}<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <span class="el-dropdown-link mr-2 el-link"
		      v-else>
		        {{userInfo.nickname}}<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user');">我的招聘</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user/account');">账号设置</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="goToPersonal">去个人版</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" @click="outLogin">注销登录</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
			<el-dropdown trigger="click">
		      <span class="el-dropdown-link mr-2 el-link">
		        职位<i class="el-icon-arrow-down el-icon--right"></i>
		      </span>
		      <el-dropdown-menu slot="dropdown" class="top-nav-el-dropdown-menu">
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user/jobs/release');">发布职位</div>
		        </el-dropdown-item>
		        <el-dropdown-item>
		        	<div class="d-block" 
		        	@click="window.open('/user/jobs/management');">我的发布</div>
		        </el-dropdown-item>
		      </el-dropdown-menu>
		    </el-dropdown>
		    <el-link href="/user/myMessage" :underline="false">消息({{view.message_count}})</el-link>
		</div>
	</div>
</div>